/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tnviet.proj.jna.stat;

import java.util.Vector;
import jpcap.packet.Packet;

/**
 *
 * @author Administrator
 */
public abstract class JNStatisticsController {

    public abstract String getName();
    public abstract void analyze(Vector packets);
    public abstract void addPacket(Packet p);

    public abstract String[] getLabels();
    public abstract String[] getStatTypes();
    public abstract long[] getValues(int index);

    public abstract void clear();

    public JNStatisticsController newInstance(){
        try {
            return (JNStatisticsController) this.getClass().newInstance();
        } catch (Exception ex) {
            return null;
        }

    }
}
